package com.mmd.manage.service;

import com.mmd.bean.PageBean;
import com.mmd.common.entity.MmdUser;
import com.mmd.manage.vo.AdminUserVo;
import com.mmd.manage.vo.ResetPasswordDto;
import com.mmd.manage.vo.UserDto;
import com.mmd.manage.vo.UserEo;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

public interface UserService {
	public Map<String, Object> login(String account, String pwd, HttpServletResponse response);

    boolean logoff(HttpServletRequest request, HttpServletResponse response, String adminToken);

    boolean register(UserEo user);

    List<MmdUser> userList(String companyName);

    boolean modifyPwd(UserEo user);

    boolean audit(String account, Integer flag);

    boolean setLevel(String account, String userLevel);

    void addAdminUser(UserDto userDto);

    PageBean<AdminUserVo> getUserPageList(int pageNo, int pageSize);

    void isFree(long uid, int isFree);

    void resetPassword(ResetPasswordDto resetPasswordDto);

    void modifyUserInfo(MmdUser mmdUser);
}
